package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 排班顺位表
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-16
 */
@TableName("cis_position")
@ApiModel(value = "CisPosition对象", description = "排班顺位表")
@Data
public class CisPosition implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    @ApiModelProperty("年份")
    private Integer yearPart;

    @ExcelIgnore
    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ExcelIgnore
    @ApiModelProperty("校区id")
    private Long schoolId;

    @ExcelProperty(value = "校区", index = 4)
    @TableField(exist = false)
    private String schoolName;

    @ExcelIgnore
    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ExcelProperty(value = "科目", index = 1)
    @TableField(exist = false)
    private String subjectsName;

    @ExcelIgnore
    @ApiModelProperty("老师id")
    private Long teacherId;

    @ExcelProperty(value = "教师名称", index = 0)
    @TableField(exist = false)
    private String teacherName;

    @ExcelIgnore
    @ApiModelProperty("1精品课，2智能课，3刷题班")
    private Integer lessonType;

    @ExcelIgnore
    @ApiModelProperty("创建人")
    private Long createdId;

    @ExcelIgnore
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ExcelIgnore
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateAt;

    @ExcelIgnore
    @ApiModelProperty("0为正常，1为删除")
    @TableLogic
    private Integer deleted;

    @ExcelIgnore
    @TableField(exist = false)
    private Integer yearClassId;

    @ExcelIgnore
    @TableField(exist = false)
    private Integer positionNum;

    @ExcelIgnore
    @TableField(exist = false)
    private Long classTypeId;


    @ExcelIgnore
    @TableField(exist = false)
    private String classTypeName;

    @ExcelIgnore
    @TableField(exist = false)
    private Long gradeId;

    @ExcelIgnore
    @TableField(exist = false)
    private Integer peopleNum;

    @ExcelIgnore
    @TableField(exist = false)
    private List<CisPositionDetail> cisPositionDetailList;

    @ExcelIgnore
    @TableField(exist = false)
    private String yearClassIdSrc;

    @ExcelProperty(value = "年级", index = 2)
    @TableField(exist = false)
    private String yearClassIdStrBuilder;

    @ExcelProperty(value = "班型（人数上限）-顺位", index = 3)
    @TableField(exist = false)
    private String classTypeIdStrBuilder;

    @ExcelIgnore
    @TableField(exist = false)
    private CisPositionDetail cisPositionDetail;

}
